home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
dviware
/
quicspool
/
libqmsquery
/
qmspfplex.l
< prev
next >
Wrap
Text File
|
1990-10-01
|
698b
|
33 lines
/* $Header: qmspfplex.l,v 1.1 88/01/15 12:19:28 simpson Rel $
%{
/*
$Log: qmspfplex.l,v $
* Revision 1.1 88/01/15 12:19:28 simpson
* initial release
*
* Revision 0.1 87/12/11 21:34:49 simpson
* beta test
*
*/
#undef input
#define input() (((yytchar=yysptr>yysbuf?U(*--yysptr):timedgetc(_Ifp)) \
==10?(yylineno++, yytchar):yytchar)==EOF?0:yytchar)
#ifdef TRW
#include <local/standard.h>
#else
#define EQN(s, t, n) (!strncmp(s, t, n))
#endif
%}
%%
[^\r\n]+ {
if (EQN("PFP:", yytext, 4))
REJECT;
if (EQN("NONE", yytext, 4))
REJECT;
(void)strcpy(yylval.s, yytext);
return STRING;
}
PFP: return PFP;
NONE return NONE;
\r\n return ENDLINE;